tools/xc_restore: Initialise console and store mfns
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 25 Nov 2013 11:05:47 +0000 (11:05 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 25 Nov 2013 12:05:34 +0000 (12:05 +0000)
commit592b614f3469bb83d1158c3dc8c15b67aacfbf4f
tree7edc865d5891c3bcf39a7b76bc2f86fe740145f6
parente439e0b289e3590f84836e4f9bbdfa560c7af6ef
tools/xc_restore: Initialise console and store mfns

If the console or store mfn chunks are not present in the migration stream,
stack junk gets reported for the mfns.

XenServer had a very hard to track down VM corruption issue caused by exactly
this issue.  Xenconsoled would connect to a junk mfn and incremented the ring
pointer if the junk happend to look like a valid gfn.

Coverity ID: 1056093 1056094

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xcutils/xc_restore.c